package com.kws.merchant.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * @author : zhangbenting
 * @date : 2024/11/12 11:01
 * @Version: 1.0
 */
@Data
@TableName(value = "tb_refund_log")
public class RefundLogEntity implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 关联的订单id
     */
    @ApiModelProperty("关联的订单id")
    private Long orderId;

    /**
     * 退款状态 0失败  1成功
     */
    @ApiModelProperty("退款状态 0退款中   1成功  2失败")
    private String refundStatus;

    /**
     * 退款渠道
     */
    @ApiModelProperty("退款渠道")
    private String channel;

    /**
     * 退款入账账户
     */
    @ApiModelProperty("退款入账账户")
    private String userReceivedAccount;

    /**
     * 退款金额
     */
    @ApiModelProperty("退款金额")
    private BigDecimal refund;

    /**
     * 退款原因
     */
    @ApiModelProperty("退款原因")
    private String reason;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
